<?php
class Mcatalogue_product extends CI_Model{
	protected $_table="tpt_catalogue_product";
	public function __construct(){
		parent::__construct();	
		$this->load->database();
	}
		
	public function getNameByUrl($url){
		$this->db->select('cata_name');
		$this->db->where('cata_name_url',$url);
		$data = $this->db->get($this->_table)->row_array();
		return $data['cata_name'];
	}
}